<%@ page contentType="text/html; charset=utf-8" language="java" %>
<html>
<head>
    <title>Hello!</title>
</head>
<body>
<h2>文件上传</h2>
<form action="${pageContext.request.contextPath}/upload" enctype="multipart/form-data" method="post">
    <input type="file" name="file">
    <input type="submit" name="upload">
</form>
<br>
<br>
<h2>文件下载</h2>
<form action="download" enctype="multipart/form-data" method="post">
    <table>
        <tr>
            <td>文件名称:</td>
            <td><input type="text" name="filename">
            </td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" name="提交"></td>
        </tr>
    </table>
</form>

</body>
</html>
